package com.pureut.storage.controller;

import com.pureut.common.core.web.controller.BaseController;
import com.pureut.common.core.web.domain.AjaxResult;
import com.pureut.storage.service.StrategyMessageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/***
 * 策略信息控制层
 * Author:C
 * Date:2022/12/21 14:29
 * @DESC
 */
@RestController
@RequestMapping("/strategy-message")
public class StrategyMessageController extends BaseController {

    @Resource
    StrategyMessageService strategyMessageService;

    /**
     * 获取策略信息列表
     * @return
     */
    @GetMapping("/list")
    public AjaxResult getList() {
        return AjaxResult.success(strategyMessageService.list());
    }

}
